
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="/static/component/pear/css/pear.css" />
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
</head>
<body class="pear-container">
<div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
        <div class="layui-card">
            <form class="layui-form edit-form" method="post" action="">
            <div class="layui-tab layui-tab-brief" lay-filter="TabBrief">
                <ul class="layui-tab-title">
                    <li class="layui-this">网站设置</li>
                    <li>邮箱设置</li>
                    <li>上传设置</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    网站标题
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input" name="title" value="{$data['title']??''}" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    网站关键词
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input"  name="key" value="{$data['key']??''}" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    网站描述
                                </label>
                                <div class="layui-input-block">
                                    <textarea name="desc" class="layui-textarea">{$data['desc']??''}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    电话
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input"  name="tel" value="{$data['tel']??''}" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    下载地址
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input"  name="down_url" value="{$data['down_url']??''}" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    QQ群
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input"  name="qq" value="{$data['qq']??''}" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    邮箱
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input"  name="mail" value="{$data['mail']??''}" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    地址
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input"  name="addr" value="{$data['addr']??''}" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    备案号
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input"  name="beian" value="{$data['beian']??''}" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    初次关注回复
                                </label>
                                <div class="layui-input-block">
                                    <textarea autocomplete="off" class="layui-input"  name="subscribe" style="height: 100px">{$data['subscribe']??''}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    扫码登录回复
                                </label>
                                <div class="layui-input-block">
                                    <textarea autocomplete="off" class="layui-input"  name="scan" style="height: 100px">{$data['scan']??''}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    统计代码
                                </label>
                                <div class="layui-input-block">
                                    <textarea autocomplete="off" class="layui-input"  name="tongji" style="height: 100px">{$data['tongji']??''}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    网站LOGO
                                </label>
                                <div class="layui-input-block">
                                    {:opt_photo('logo')}
                                <button class="pear-btn pear-btn-primary pear-btn-sm  upload-image" type="button">
                                        <i class="fa fa-image">
                                        </i>
                                        上传图片
                                    </button>
                                    <input lay-verify="uploadlogo" name="logo" type="hidden" value="{$data['logo']??''}"/>
                                    <div class="upload-image">
                                        <span>
                                        </span>
                                        <img class="upload-image" src="{$data['logo']??''}"/>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    网站海报
                                </label>
                                <div class="layui-input-block">
                                    {:opt_photo('bg')}
                                <button class="pear-btn pear-btn-primary pear-btn-sm upload-image" type="button">
                                        <i class="fa fa-image">
                                        </i>
                                        上传图片
                                    </button>
                                    <input lay-verify="uploadbg" name="bg" type="hidden" value="{$data['bg']??''}"/>
                                    <div class="upload-image">
                                        <span>
                                        </span>
                                        <img class="upload-image" src="{$data['bg']??''}"/>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    登录验证码
                                </label>
                                <div class="layui-input-block">
                                    {if $data['login_captcha'] == 1}
                                        <input type="radio" name="login_captcha" value="1" title="开启" checked>
                                        <input type="radio" name="login_captcha" value="0" title="关闭">
                                    {else}
                                        <input type="radio" name="login_captcha" value="1" title="开启">
                                        <input type="radio" name="login_captcha" value="0" title="关闭" checked>
                                    {/if}
                                </div>
                            </div>
                    </div>
                    <div class="layui-tab-item">
                            <div class="layui-form-item">
                            <label class="layui-form-label">
                                邮箱账号
                            </label>
                            <div class="layui-input-block">
                                <input autocomplete="off" class="layui-input" name="smtp-user" value="{$data['smtp-user']??''}" type="text"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                邮箱密匙
                            </label>
                            <div class="layui-input-block">
                                <input autocomplete="off" class="layui-input"  name="smtp-pass" value="{$data['smtp-pass']??''}" type="text"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                邮箱端口
                            </label>
                            <div class="layui-input-block">
                                <input autocomplete="off" class="layui-input"  name="smtp-port" value="{$data['smtp-port']??''}" type="text"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                邮箱服务器
                            </label>
                            <div class="layui-input-block">
                                <input autocomplete="off" class="layui-input"  name="smtp-host" value="{$data['smtp-host']??''}" type="text"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                            <div class="layui-form-item">
                                <label class="layui-form-label">存储方式</label>
                                <div class="layui-input-block">
                                <input type="radio" name="file-type" value="1" title="本地" {if condition="$data['file-type'] eq 1"} checked {/if} lay-filter="type">
                                <input type="radio" name="file-type" value="2" title="阿里云" {if condition="$data['file-type'] eq 2"} checked {/if} lay-filter="type">
                                </div>
                            </div>
                            <div class="layui-form-item" id="oss">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">Oss地址</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="file-endpoint"  value="{$data['file-endpoint']??''}"  placeholder="请输入Oss地址" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">空间名称</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="file-OssName"   value="{$data['file-OssName']??''}" placeholder="请输入空间名称" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">KeyId</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="file-accessKeyId"   value="{$data['file-accessKeyId']??''}" placeholder="请输入KeyId" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">KeySecret</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="file-accessKeySecret"   value="{$data['file-accessKeySecret']??''}"  placeholder="请输入KeySecret" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>  
                <div class="layui-input-block" style="min-height: 80px;">
                    <button type="submit" class="pear-btn pear-btn-primary">保存</button>
                    <button type="reset" class="pear-btn">重置</button>
                </div>
        </form>    
        </div>
    </div>
</div>
<script>layui.use(['uploads'], function() {})</script>
</body>
</html>
